package com.ynu.yx.chatroleai.converter;

import com.ynu.yx.chatroleai.dto.CharacterSkillCreateDto;
import com.ynu.yx.chatroleai.dto.CharacterSkillUpdateDto;
import com.ynu.yx.chatroleai.dto.CharacterSkillViewDto;
import com.ynu.yx.chatroleai.model.CharacterSkill;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface CharacterSkillConverter {
    CharacterSkill toModel(CharacterSkillCreateDto characterSkillCreateDto);
    CharacterSkill toModelFromUpdate(CharacterSkillUpdateDto characterSkillUpdateDto);
    List<CharacterSkillViewDto> toViewDto(List<CharacterSkill> characterSkills);

}
